<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>投资项目</title>
    <link href="css/public.css" rel="stylesheet"/>
    <link href="css/view.css" rel="stylesheet"/>
    <link href="css/tipbox.css" rel="stylesheet" type="text/css"/>
    <!--foot-->
    <link href="css/public_1.css" rel="stylesheet" media="all"/>
    <style></style>
    <script src="js/vue2.5.17.js"></script>
    <script src="js/kindeditor-all.js"></script>
    <script src="js/lang/zh-CN.js"></script>
    <script src="js/route.js"></script>
    <script type="text/javascript" src="js/jquery1.7.js"></script>
    <script src="../admin/layui/layui.all.js"></script>
    <link rel="stylesheet" href="../admin/layui/css/layui.css">
</head>
<body>


<div class="header_bg">
    <div class="header wap">
        <div class="logo"><a href="/index.html" title="权名众筹系统">权名众筹系统</a></div>
        <div class="nav cfff">
            <ul>
                <li class="nav_a1"><a href="/index.html">首页</a></li>
                <li class="nav_a2"><a href="/home/list.html?projectName=&page=1&limit=10&type=0">全部项目</a></li>
                <li class="nav_a4"><a href="/home/apply.html">发布项目</a></li>                 <li class="nav_a5"><a href="/admin/index.html#/user/login">后台管理</a></li>


            </ul>
        </div>
        <div class="h_right" id="h_right_userInfo">
            <ul class="h_login h_user displayNone"
                v-bind:class="[userInfo.code===101 ? 'displayInlineBlock':'displayNone']" id="login_panel">
                <span>
                            <li class="hl_login"><a href="/home/login.html" class="h_login_ring">登录</a></li>
                            <li class="hl_reg"><a href="/home/sign.html" class="h_login_join">注册</a></li>
                            <li class="qq_login"><a href="#" title="QQ登陆">QQ登录</a></li>
                </span>
                <li class="help_login"><a href="#">帮助</a></li>
            </ul>
            <ul class="h_login  h_reg displayNone"
                v-bind:class="[userInfo.code===0 ? 'displayInlineBlock':'displayNone']" id="login_info">
                <div>
                    <li class="h_name"><a href="/home/user/user.html">{{userInfo.data!=null
                        ?userInfo.data.username:''}}</a>
                        <div class="popup name_popup cfff displayNone">
                            <a href="/home/user/user.html">我的帐户</a>
                            <a href="/home/logout">安全退出</a>
                        </div>
                    </li>
<!--<li class="h_message"><a href="#" id="notify">提醒</a>-->                         <!--<div class="popup message_popup cfff displayNone">-->                             <!--<a href="#" id="unread">未读通知 </a>-->                             <!--<a href="#" id="unreview">待评价项目 </a>-->                             <!--<a href="#" id="uncash">未兑现项目 </a>-->                         <!--</div>-->                     <!--</li>-->

                    <li class="help_login"><a href="#">帮助</a></li>
                </div>
            </ul>
        </div>
        <div class="top_nav_ti" style="display: none;" id="tips_help">
            <span class="arrow"></span>
            <p>初来乍到？先看看帮助吧！</p>
            <a href="#" class="view_btn" id="close_help">知道啦</a>
        </div>
    </div>
</div>


<div class="content wap content_about">

</div>

<div class="content wap pay_contnet">
    <div class="bread_crumbs"><a href="../index.html" target="_blank">首页</a>
        >
        投资支付
    </div>
    <br>
    <span id="changeAddress" class="layui-btn">切换地址 </span>
    <span id="addAddress" class="layui-btn">添加地址 </span>
    <a href="user/myaddress.html"><span class="layui-btn">管理地址 </span></a>

    <form class="layui-form">


        <div class="layui-form-item">
            <div class="layui-input-inline">
                <input type="hidden" id="projectId" name="project.projectId" readonly lay-verify="required"
                       autocomplete="off" placeholder=""
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">投资份数</label>
            <div class="layui-input-inline">
                <input type="text" id="num" name="num" readonly lay-verify="required" autocomplete="off" placeholder=""
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">单份价格</label>
            <div class="layui-input-inline">
                <input type="text" id="price" name="price" readonly lay-verify="required" autocomplete="off"
                       placeholder=""
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">总价</label>
            <div class="layui-input-inline">
                <input type="text" id="allMoney" readonly lay-verify="required" autocomplete="off" placeholder=""
                       class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">操作</label>
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="support-submit">点击支付</button>
            </div>
        </div>
    </form>

</div>


<div class="footer">
    <div class="ft_link_bg">
        <div class="ft_link">

            <dl class="ft_coop">
                <dt>合作伙伴</dt>
                <dd>


                </dd>
            </dl>
            <dl class="ft_help">
                <dt>帮助拓展</dt>

            </dl>
        </div>
    </div>
</div>

<div class="ws_global_footer">
    <div class="ws_footer_info" style="min-width: 1000px">
        <div class="content">
            <p>
                <a href="#" target="_blank">桂ICP备123456789</a>　
                权名众筹　
                权名众筹　
                权名众筹　
                <a href="#"
                   target="_blank"
                   style="width:16px;height:16px;display:inline-block;background:url('images/wen_icon.png')">&nbsp;</a>
            </p>
            <p>
                Copyright (C) 2018 权名众筹 Rights Reserved　
                <a href="#" target="_blank">百度</a>
            </p>
        </div>
    </div>
</div>


<script>
    //获取头部
    $.ajax({
        url: "/home/getCurrentUser",
        async: true,
        success: function (data) {
            if (data.code == 101) {
                alert("请先登录");
                window.location.href = "/home/login.html";
            }
            new Vue({
                el: '#h_right_userInfo',
                data: {userInfo: data}
            })
            console.log(data)
        }
    });

</script>
<script type="text/javascript" src="js/addressdata.js"></script>
<script type="text/javascript" src="js/adress.js"></script>


<script src="handleJs/support.js"></script>
</body>
</html>
